<?php include THEME_PATH.'/Sidebar/Article_list_sidebar.php'; ?>

<div class="tm-content">
    <ul class="am-list">
        <?php if (!empty($currentType)): ?>
            <li class="am-padding-xs am-padding-left">
                <ol class="am-breadcrumb am-margin-0 am-padding-0">
                    <li><a href="/">首页</a></li>
                    <li class="am-active"><?= $currentType['type_name']; ?></li>
                </ol>
            </li>
        <?php endif; ?>
        <?php include THEME_PATH.'/Article/Article_list.php'; ?>
    </ul>

    <ul class="am-list am-list-border">
        <li class="am-padding-xs am-text-center am-text-sm">
            日志类型
        </li>
        <li class="am-padding-xs am-text-sm">
            <?php foreach ($type as $key => $value) : ?>
                <a href="<?= $label->url('Master-Index-index', ['type' => $value['type_id']]); ?>" class="am-inline tm-remove-a-background-color-hover"><?= $value['type_name']; ?></a>
            <?php endforeach; ?>
        </li>
    </ul>
</div>
